﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="Information.aspx.cs" Inherits="Admin_Information" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="postedit" class="clearfix">
        <h2 class="ico_mug">
            Cập nhật thông tin
        </h2>
        <table style="width: 90%; border: 1px" class="yui">
            <tr>
                <td style="width: 150px; font-weight: bold; text-align: right">
                    Nội dung phần Header
                </td>
                <td>
                
                    <cc1:Editor ID="Editor1" runat="server" />
                
                </td>
                
            </tr>
            <tr>
                <td style="width: 150px; font-weight: bold; text-align: right">
                    Nội dung phần Footer
                </td>
                <td>
                   <cc1:Editor ID="Editor2" runat="server" />
                </td>
            </tr>
            
            <tr>
                <td style="width: 150px; font-weight: bold; text-align: right">
                    Image Logo
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                    <asp:Label ID="lbMessage" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 150px; font-weight: bold; text-align: right">
                    Ngôn ngữ
                </td>
                <td>
                    <asp:DropDownList ID="grLanguage" runat="server">
                        <asp:ListItem Value="0" Text="English"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 150px; font-weight: bold; text-align: right">
                </td>
                <td>
                    <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="4" style="font-weight: bold; text-align: center">
                    Thông tin
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="grdInformation" Width="100%" CssClass="yui" runat="server" AutoGenerateColumns="False">
                        <Columns>
                            <asp:BoundField DataField="idInfor" HeaderText="ID" />
                            <asp:BoundField DataField="TextHeader" HeaderText="Name Album" />
                            <asp:BoundField DataField="TextFooter" HeaderText="Date Create" />
                            <asp:ImageField HeaderText="Image Logo" DataImageUrlField="ImageURLLogo" DataImageUrlFormatString="~/Admin/img/Logo/{0}">
                                <ControlStyle Height="80px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:ImageField>
                            <asp:TemplateField HeaderText="Edit">
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnEdit" runat="server" CausesValidation="false" CommandArgument='<%# Eval("idInfor") %>'
                                        CommandName="Edit" ImageUrl="~/en/images/edit.png" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="clsGrdHeader" />
                        <RowStyle CssClass="clsGrdRow" />
                        <AlternatingRowStyle CssClass="clsGrdAlternateRow" />
                        <PagerStyle CssClass="clsPage" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
